//
//  LMButton.h
//  easybook
//
//  Created by longmin on 16/6/29.
//  Copyright © 2016年 longmin. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef enum {
    LMButtonTypeBottom,             //底部固定按钮
    LMButtonTypeMove,               //蓝色移动按钮
    LMButtonTypeBorderLine,         //线框的移动按钮
    LMButtonTypeSmallBlue,          //蓝色小按钮
    LMButtonTypeSmallWhite,         //白色小按钮
    LMButtonTypeCancel,             //取消按钮
    LMButtonTypeNone,               //无边框背景色按钮
}LMButtonType;

@class LMButton;
typedef void(^onClick)(LMButton *btn);

@interface LMButton : UIButton

@property(nonatomic, copy) onClick onClick;

@property(nonatomic, assign) LMButtonType customType;

-(void)renderWithType:(LMButtonType)type;

+(LMButton *)lm_buttonWithType:(LMButtonType)type title:(NSString *)title;

-(void)btnClick:(LMButton *)btn;

@end
